package com.gitee.starblues.grape.repository.databases.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gitee.starblues.grape.repository.databases.entity.RebateDrawLogPo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RebateDrawLogMapper extends BaseMapper<RebateDrawLogPo> {
	int deleteByPrimaryKey(Integer id);

	int insert(RebateDrawLogPo record);

	int insertSelective(RebateDrawLogPo record);

	RebateDrawLogPo selectByPrimaryKey(Integer id);

	int updateByPrimaryKeySelective(RebateDrawLogPo record);

	int updateByPrimaryKey(RebateDrawLogPo record);

	List<RebateDrawLogPo> selectRebateDrawLogByUserId(@Param("userId") String userId);

	// 新增根据用户名查询的方法
	List<RebateDrawLogPo> selectRebateDrawLogByUserName(@Param("userName") String userName);

	List<RebateDrawLogPo> selectAllPendingRebateDrawLog();
}
